package com.rongke.model;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;

/**
 * @Question
 * @(question)
 * @version : Ver 1.0
 */
@TableName("question")
public class Question implements Serializable {
	@TableField(exist = false)
	private static final long serialVersionUID = 1L;

	/**
	 * @备注:主键 问题id
	 * @字段:id BIGINT(19)
	 */
	@TableId(type = IdType.AUTO)
	private Long id;


	/**
	 * @备注:问卷id
	 * @字段:questionnaire_id BIGINT(19)
	 */
	private Long questionnaireId;


	/**
	 * @备注:标题
	 * @字段:title VARCHAR(255)
	 */
	private String title;


	/**
	 * @备注:问题类型 1单选2多选
	 * @字段:type INT(10)
	 */
	private Integer type;


	/**
	 * @备注:添加时间
	 * @字段:addtime DATETIME(19)
	 */
	private java.util.Date addtime;


	public Question(){
	}

	public Question(
		Long id
	){
		this.id = id;
	}



	public void setId(Long id) {
		this.id = id;
	}

	public Long getId() {
		return this.id;
	}


	public void setQuestionnaireId(Long questionnaireId) {
		this.questionnaireId = questionnaireId;
	}

	public Long getQuestionnaireId() {
		return this.questionnaireId;
	}


	public void setTitle(String title) {
		this.title = title;
	}

	public String getTitle() {
		return this.title;
	}


	public void setType(Integer type) {
		this.type = type;
	}

	public Integer getType() {
		return this.type;
	}


	public void setAddtime(java.util.Date addtime) {
		this.addtime = addtime;
	}

	public java.util.Date getAddtime() {
		return this.addtime;
	}
}
